package com.ruoyi.quality.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 不合格品损失视图对象 quality_rejectsn_losses
 *
 * @author yanjun
 * @date 2023-09-12
 */
@Data
@ExcelIgnoreUnannotated
public class QualityRejectsnLossesImportVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long rejectsnId;

    /**
     * 发现单位
     */
    @ExcelProperty(value = "发现单位",converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "company_fullname")
    private String discoveryUnit;

    /**
     * 责任单位
     */
    @ExcelProperty(value = "责任单位",converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "company_fullname")
    private String responsibilityUnit;

    /**
     * 信息单号
     */
    @ExcelProperty(value = "信息单号")
    private String oddNumber;

    /**
     * 单位
     */

    @ExcelProperty(value = "单位")
    private String orderUnit;

    /**
     * 部门
     */
    @ExcelProperty(value = "部门", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "order_dept")
    private String deptAbbreviation;

    /**
     * 产品编号
     */
    @ExcelProperty(value = "产品编号")
    private String contractNumber;

    /**
     * 零件件号
     */
    @ExcelProperty(value = "零件件号或规格")
    private String partNumber;

    /**
     * 项目号
     */
    @ExcelProperty(value = "项目号")
    private String projectNumber;

    /**
     * 零件名称
     */
    @ExcelProperty(value = "零件名称")
    private String partName;

    /**
     * 材质
     */
    @ExcelProperty(value = "材质")
    private String material;

    /**
     * 重量
     */
    @ExcelProperty(value = "重量")
    private String weight;

    /**
     * 工时
     */
    @ExcelProperty(value = "工时")
    private BigDecimal workingHours;

    /**
     * 回用工时
     */
    @ExcelProperty(value = "回用工时")
    private String reuseHours;

    /**
     * 返工工时
     */
    @ExcelProperty(value = "返工工时")
    private String reworkHours;

    /**
     * 返修工时
     */
    @ExcelProperty(value = "返修工时")
    private String repairHours;

    /**
     * 单价
     */
    @ExcelProperty(value = "单价")
    private BigDecimal unitPrice;

    /**
     * 损失
     */
    @ExcelProperty(value = "损失")
    private BigDecimal lossAmount;

    /**
     * 严重级别
     */
    @ExcelProperty(value = "严重级别")
    private String severityLevel;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private Long number;

    /**
     * 检验情况
     */
    @ExcelProperty(value = "不合格品检验情况")
    private String inspectionStatus;

    /**
     * 处理建议
     */
    @ExcelProperty(value = "施工人员处理建议")
    private String handlingSuggestion;

    /**
     * 原因代码
     */
    @ExcelProperty(value = "原因代码")
    private String reasonCode;

    /**
     * 缺陷代码
     */
    @ExcelProperty(value = "缺陷代码")
    private String defectCode;

    /**
     * 处理结论
     */
    @ExcelProperty(value = "处理结论", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "inform_conclusion")
    private String handlingConclusion;

    /**
     * 登记时间
     */
    @ExcelProperty(value = "登记时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date registrationTime;


}
